﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ChiTietThuocTinhControl.ascx.cs"
    Inherits="TMDT.Web.UI.Controls.ChiTietThuocTinhControl" %>
Chi tiết thuộc tính
<table>
    <tr>
        <td>
            Loại sản phẩm
        </td>
        <td>
            <asp:DropDownList runat="server" ID="ddlLoaiSanPham" AutoPostBack="true" 
                onselectedindexchanged="ddlLoaiSanPham_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
    </tr>
</table>
<table>
    <thead>
        <tr>
            <th>
                STT
            </th>
            <th>
                Thêm/Xóa
            </th>
            <th>
                Thuộc tính
            </th>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater runat="server" ID="rptChiTietThuocTinh" 
            onitemdatabound="rptChiTietThuocTinh_ItemDataBound">
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblSTT" Text='<%# Container.ItemIndex + 1 %>'></asp:Label>
                    </td>
                    <td>
                        <asp:ImageButton ID="ibnAddRemove" runat="server" OnClick="ibnAddRemove_Click" CommandArgument='<%# Eval("IDThuocTinh") %>' ImageUrl="../Images/add.png"/>
                    </td>
                    <td>
                        <asp:Label ID="lblThuocTinh" runat="server"></asp:Label>
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblSTT" Text='<%# Container.ItemIndex + 1 %>'></asp:Label>
                    </td>
                    <td>
                       <asp:ImageButton ID="ibnAddRemove" runat="server" OnClick="ibnAddRemove_Click" CommandArgument='<%# Eval("IDThuocTinh") %>' ImageUrl="../Images/add.png" />
                    </td>
                    <td>
                        <asp:Label ID="lblThuocTinh" runat="server"></asp:Label>
                    </td>
                </tr>
            </AlternatingItemTemplate>
        </asp:Repeater>
    </tbody>
</table>
